package com.fh.service.impl;

import com.fh.mapper.TUserMapper;
import com.fh.model.TUser;
import com.fh.service.UserService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

@Component
public class UserServiceImpl implements UserService {
    @Resource
    private TUserMapper tUserMapper;

    public TUser selectByNameAndPassword(Map<String, Object> map) {
        TUser tUser = tUserMapper.selectByNameAndPassword(map);
        return tUser;
    }
}
